package com.reus.server.config;

import com.reus.api.service.OrderService;
import com.reus.api.service.UserService;
import com.reus.server.service.impl.OrderServiceImpl;
import com.reus.server.service.impl.UserServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description:
 * copyright: Copyright (c) 2018-2021
 * company: iSysCore Tech. Co., Ltd.
 *
 * @author liuxq@isyscore.com
 * @version 1.0
 * @date 2021-09-28 11:30:04
 */
@Configuration
public class BeanConfig {

    @Bean("com.reus.api.service.UserService")
    public UserService userService() {
        return new UserServiceImpl();
    }

    @Bean("com.reus.api.service.OrderService")
    public OrderService orderService() {
        return new OrderServiceImpl();
    }
}
